<?php 
session_start();
if (isset($_POST['id']) && isset($_SESSION['openid'])){
    include_once("../c/config.php");
    require_once "../jssdk.php";
    $id=$_POST['id'];
    $openid=$_SESSION['openid'];
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqli->error);}
    
    $query=$mysqli->query("select id from play where openid='".$openid."' and jid=1 limit 0,1  ");
    if($query->num_rows>0){
   
        $query=$mysqli->query("select id from uinfo where openid='".$openid."' limit 0,1  ");
        if($query->num_rows>0){}else{
            echo json_encode(array('s'=>'go'));
            exit;
        }
    }
     echo json_encode(array('s'=>'not'));
     exit;
    
    
   
}


